<template>
  <div>
    <div class="box">
      <div class="editor">
        <com-Editor ref="refQuillEditor" height="500px" @resultHtml="resultHtml"></com-Editor>
      </div>
      <div class="phone">
        <h5>手机端页面浏览</h5>
        <div class="phone-box">
          <div class="title">康寿药业</div>
          <div v-html="valueHeml"></div>
        </div>
      </div>
    </div>

    <div class="button-box">
      <el-button @click="lastStep">上一步</el-button>
      <el-button type="primary" @click="submitForm"> 下一步 </el-button>
    </div>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
const valueHeml = ref('')
const resultHtml = (data: any) => {
  valueHeml.value = data
}
//上一步
const lastStep = () => {}
//下一步
const submitForm = () => {}
</script>

<style scoped lang="scss">
.box {
  display: flex;
  justify-content: space-between;
  .editor {
    width: 60%;
  }
  .phone {
    width: 30%;
    h5 {
      font-size: 14px;
      padding-bottom: 10px;
    }
    .phone-box {
      border-radius: 20px;
      border: 1px solid #eee;
      width: 320px;
      height: 500px;
      overflow: hidden;
      overflow-y: auto;
      .title {
        height: 40px;
        line-height: 40px;
        font-size: 18px;
        text-align: center;
        background-color: rgb(64, 172, 113);
        color: #fff;
      }
    }
  }
}
</style>
